/*
 * MenuMapper.java
 * Copyright(C) 2020-2099 坚小持
 * All rights reserved.
 * -----------------------------------------------
 * 2020-08-13 Created
 */
package com.project.web.system.mapper.app;

import com.project.web.system.mapper.common.BaseMapper;
import com.project.web.system.model.app.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuMapper extends BaseMapper<Menu, Long> {

    /**
     * 查询所有节点
     * @param id
     * @return
     */
    public List<Menu> getTree(Long id);

    /**
     * 根据用户ID查询,用户权限
     * @return
     */
    public List<Menu> getMenuByMenuIds(@Param("menuIds") List<Long> menuIds);

    /**
     * 查询用户按钮权限
     * @param menuIds
     * @return
     */
    public List<Menu> selectBottonMenu(@Param("menuIds") List<Long> menuIds);
}